<!--
 * @Author: SeonHu
 * @Date: 2025-09-28 14:19:03
 * @LastEditors: SeonHu
 * @LastEditTime: 2025-09-29 17:27:08
 * @FilePath: \bg-vben\src\views\dashboard\account\center\Project.vue
 * @Description: 
 * Copyright © 2020-2025 SANQING Corporation, All rights reserved.
-->
<template>
  <List :class="prefixCls">
    <ARow :gutter="16">
      <template v-for="(item, _index) in list" :key="_index">
        <ACol :span="6">
          <ListItem>
            <Card :hoverable="true" :class="`${prefixCls}__card`">
              <img :src="demoImg" />
              <div :class="`${prefixCls}__card-title`">
                {{ item.title }}
              </div>
              <div :class="`${prefixCls}__card-content`">
                {{ item.content }}
              </div>
            </Card>
          </ListItem>
        </ACol>
      </template>
    </ARow>
  </List>
</template>

<script lang="ts" setup>
  import demoImg from '@/assets/images/demo.png';
  import { Card, Col, List, Row } from 'ant-design-vue';

  import { projectList } from './data';

  const ListItem = List.Item;
  const ARow = Row;
  const ACol = Col;

  const prefixCls = 'account-center-project';
  const list = projectList;
</script>

<style lang="scss">
  .account-center-project {
    &__card {
      width: 100%;

      .ant-card-body {
        padding: 0 0 24px;
      }

      img {
        width: 100%;
        height: 130px;
      }

      &-title {
        margin: 5px 10px;
        font-size: 16px;
        font-weight: 500;
        color: rgb(0 0 0 / 85%);
      }

      &-content {
        margin: 5px 10px;
      }
    }
  }
</style>
